-- GENERATED SPELL FOR [Flamescale Wyrmkin] --


function spell0_7043(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(13341,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7043', 621, 1)
end

function spell1_7043(pUnit, Event) --@Flame Buffet,n/a--
pUnit:FullCastSpellOnTarget(9574,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7043', 47200, 1)
end

function Sorts_7043(pUnit, Event)
local choix_sorts_7043 = math.random(0, 1)
if choix_sorts_7043 == 0 then
pUnit:RegisterEvent('spell0_7043', 1, 1)
end
if choix_sorts_7043 == 1 then
pUnit:RegisterEvent('spell1_7043', 1, 1)
end
end

function mob7043_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7043', math.random(1500, 3000), 1)
end

function mob7043_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7043_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7043_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7043, 1, 'mob7043_Action')
RegisterUnitEvent(7043, 2, 'mob7043_Leave')
RegisterUnitEvent(7043, 3, 'mob7043_Kill')
RegisterUnitEvent(7043, 4, 'mob7043_Die')
